<?php

/**
 * Description of My_Form_Decorator_Placeholder
 *
 * @author Kam
 */
class My_Form_Decorator_Placeholder extends Zend_Form_Decorator_Abstract {

    public function render($content)
    {
        $label = $this->getElement()->getLabel();
        $this->getElement()->setAttrib('placeholder', $label);
        return $content;
    }

}
